package com.paranoidmonkey.ode.Joint;

import com.paranoidmonkey.ode.AndrODE;
import com.paranoidmonkey.ode.World;

public class Slider extends Joint{
	public Slider(World world,JointGroup group){
		handle=AndrODE.dJointCreateSlider (world.getHandle(), group.groupID);
	}
	public void setAxis(float x, float y, float z){
		AndrODE.dJointSetSliderAxis (handle, x, y, z);
	}
	public void setAxisDelta(float x, float y, float z,float ax, float ay, float az){
		AndrODE.dJointSetSliderAxisDelta (handle, x, y, z, ax, ay, az);
	}
	public void setParam(int parameter, float value){
		AndrODE.dJointSetSliderParam (handle, parameter, value);
	}
	public void addForce(float force){
		AndrODE.dJointAddSliderForce(handle, force);
	}
	public float getPosition(){
		return AndrODE.dJointGetSliderPosition (handle);
	}
	public float getPositionRate(){
		return AndrODE.dJointGetSliderPositionRate (handle);
	}
	public void getAxis(float[] result){
		AndrODE.dJointGetSliderAxis (handle, result);
	}
	public float getParam(int parameter){
		return AndrODE.dJointGetSliderParam (handle, parameter);
	}

}
